package vn.edu.saigontech.ncms.web.study;

import vn.edu.saigontech.ncms.util.Checker;
import vn.edu.saigontech.ncms.web.AbstractValidator;

@SuppressWarnings("serial")
public class ValidateChangeOfferingAction extends AbstractValidator {
	
	private Long targetOfferingId;

	public String check() {
		if(Checker.isNull(this.targetOfferingId)) {
			this.sendKeyError("validator.required", "targetOffering");
		}	
		return this.toSuccess();
	}

	public Long getTargetOfferingId() {
		return targetOfferingId;
	}

	public void setTargetOfferingId(Long targetOfferingId) {
		this.targetOfferingId = targetOfferingId;
	}
}
